<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>测试Thymelea的使用</title>
</head>
<body>
<br>
<div shiro:hasPermission="user:add">

    用户添加：<a href="/add">添加</a> <br>
</div>

<div shiro:haspermission="user:update">

用户修改：<a href="/update">修改</a>
</div>

</body>
</html>